package com.rc.saas.tenant.model.discount;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.tenant.base.BaseModel;
import com.rc.saas.tenant.vo.discount.DiscountTimeSaveVo;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class TenantDiscountTime extends BaseModel {
    private Long discountTimeId;

    private String tenantCode;

    private Long discountPolicyId;

    private Long elecStationId;

    private BigDecimal elecPrice;

    private BigDecimal servicePrice;

    private BigDecimal totalPrice;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date beginTime;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date endTime;

    private String timeCode;

    private BigDecimal discount;

    private String createdBy;

    private Date createdTime;

    private String lastUpdatedBy;

    private Date lastUpdatedTime;

    private List<DiscountTimeSaveVo> discountTimeSaveVoList;

    //1:全天  2:分时段
    private String timeType;

    public List<DiscountTimeSaveVo> getDiscountTimeSaveVoList() {
        return discountTimeSaveVoList;
    }

    public void setDiscountTimeSaveVoList(List<DiscountTimeSaveVo> discountTimeSaveVoList) {
        this.discountTimeSaveVoList = discountTimeSaveVoList;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    public Long getDiscountTimeId() {
        return discountTimeId;
    }

    public void setDiscountTimeId(Long discountTimeId) {
        this.discountTimeId = discountTimeId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getDiscountPolicyId() {
        return discountPolicyId;
    }

    public void setDiscountPolicyId(Long discountPolicyId) {
        this.discountPolicyId = discountPolicyId;
    }

    public Long getElecStationId() {
        return elecStationId;
    }

    public void setElecStationId(Long elecStationId) {
        this.elecStationId = elecStationId;
    }

    public BigDecimal getElecPrice() {
        return elecPrice;
    }

    public void setElecPrice(BigDecimal elecPrice) {
        this.elecPrice = elecPrice;
    }

    public BigDecimal getServicePrice() {
        return servicePrice;
    }

    public void setServicePrice(BigDecimal servicePrice) {
        this.servicePrice = servicePrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getTimeCode() {
        return timeCode;
    }

    public void setTimeCode(String timeCode) {
        this.timeCode = timeCode;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }
}